﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XCI.Windows.Plugin.GridSetting
{
    public static class GridSettingManager
    {
        private static IGridSetting _instance;

        /// <summary>
        /// 默认实现对象
        /// </summary>
        public static IGridSetting Instance
        {
            get
            {
                return _instance;
                //if (_instance != null) return _instance;
                //return _instance ?? (_instance = new DefaultGridSetting(true));
            }
        }

        /// <summary>
        /// 注册实例
        /// </summary>
        /// <param name="instance">实例对象</param>
        public static void Register(IGridSetting instance)
        {
            _instance = instance;
        }
    }
}
